<link rel="stylesheet" type="text/css" href="assets/bootstrap-datepicker/css/datepicker.css" />
<section id="main-content">
  <section class="wrapper">
    <!--state overview end-->
    <form>
      <div class="row">
        <div class="col-lg-12">
          <section class="panel">
            <header class="panel-heading">
              项目线索信息
            </header>
            <div class="panel-body bio-graph-info">

              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">项目类型</label>
                <div class="col-sm-10">
                  <select name="proType" id="proType" ng-model="type" class="form-control" disabled>
                    <option value="">请选择</option>
                    <option value="ZL">战略类项目</option>
                    <option value="YF">研发类项目</option>
                    <option value="XS">销售类项目</option>
                    <option value="BM">部门类项目</option>
                    <option value="SW">事务类项目</option>
                    <option value="CS">内部测试类项目</option>
                  </select>
                </div>
              </div>

              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">所属公司</label>
                <div class="col-sm-10">
                  <select name="company" id="companys" class="form-control" onchange="findDept()" disabled>
                    <option ng-repeat="d in comp" value="{{d.companyId}}">{{d.company}}</option>
                  </select>
                </div>
              </div>

              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">所属部门</label>
                <div class="col-sm-10">
                  <select class="form-control" name="department" ng-model="department" disabled>
                    <option value="">请选择</option>
                    <option ng-repeat="d in dept" value="{{d.departmentCode}}">{{d.departmentName}}</option>
                  </select>
                </div>
              </div>

              <div class="form-group customerForm" ng-if="showArea">
                <label class="col-sm-2 control-label">项目区域</label>
                <div class="col-sm-10">
                  <select name="area" class="form-control" ng-model="proArea" disabled>
                    <option value="">请选择</option>
                    <option ng-repeat="d in area" value="{{d.city}}">{{d.city}}</option>
                  </select>
                </div>
              </div>
              <div class="form-group customerForm" ng-show="showCus">
                <label class="col-sm-2 control-label">客户名称</label>
                <div class="col-sm-10">
                  <input type="text" disabled id="cus" name="cusName" value="{{cusName}}" class="form-control">
                  <input type="hidden" value="" name="cusId" id="cusId" />
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">项目名称</label>
                <div class="col-sm-10">
                  <input type="text" disabled name="proName" id="proName" value="{{proName}}" class="form-control" placeholder="客户名称+产品名称">
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">优先级</label>
                <div class="col-sm-10">
                  <select name="clueLv" disabled ng-model="clueLv" class="form-control" id="clueLv">
                    <option value="0">请选择</option>
                    <option value="3">高</option>
                    <option value="2">中</option>
                    <option value="1">低</option>
                  </select>
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">紧急性</label>
                <div class="col-sm-10">
                  <select name="urgency"  class="form-control" ng-model="urgency" id="urgency" disabled certus-required>
                    <option value="0">不紧急</option>
                    <option value="1">紧急</option>
                  </select>
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">重要性</label>
                <div class="col-sm-10">
                  <select name="importance" class="form-control" ng-model="importance" id="importance" disabled
                    certus-required>
                    <option value="0">一般</option>
                    <option value="1">重要</option>
                    <option value="2">战略</option>
                  </select>
                </div>
              </div>
              <div class="form-group customerForm" ng-show="showCompare">
                <label class="col-sm-2 control-label">预计比拼类测试</label>
                <div class="col-sm-10">
                  <select name="isCompare" ng-model="isCompare" class="form-control" disabled>
                    <option value="">请选择</option>
                    <option value="1">有</option>
                    <option value="0">无</option>
                  </select>
                </div>
              </div>
              <div class="form-group customerForm" ng-show="showSign">
                <label class="col-sm-2 control-label">预签单日期</label>
                <div class="col-sm-10">
                  <input disabled id="datetime" name="divineSignDate" type="text" value="{{divineSignDate}}" class="form-control">
                </div>
              </div>
              <div class="form-group customerForm" ng-show="showHk">
                <label class="col-sm-2 control-label">预回款日期</label>
                <div class="col-sm-10">
                  <input disabled id="datetime-1" name="divineHkDate" type="text" value="{{divineHkDate}}" class="form-control">
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">线索价值点描述</label>
                <div class="col-sm-10">
                  <textarea disabled name="clueDesc" maxlength="120"  class="form-control">{{clueDesc}}</textarea>
                </div>
              </div>
              <div class="form-group customerForm" ng-if="showPolucy">
                <label class="col-sm-2 control-label">客户决策链和关键描述</label>
                <div class="col-sm-10">
                  <textarea disabled name="cusPolicy" maxlength="120"  class="form-control">{{cusPolicy}}</textarea>
                </div>
              </div>
              <div class="form-group customerForm" ng-if="showCompe">
                <label class="col-sm-2 control-label">竞争信息</label>
                <div class="col-sm-10">
                  <textarea disabled name="competitor" maxlength="120"  class="form-control">{{competitor}}</textarea>
                </div>
              </div>
              <!--<div class="form-group customerForm" ng-show="showFinish">-->
              <!--<label class="col-sm-2 control-label">预计完成时间</label>-->
              <!--<div class="col-sm-10">-->
              <!--<input id="datetime-3" name="divineFinishTime" type="text" value="{{divineFinishTime | date:'yyyy-MM-dd'}}"-->
              <!--class="form-control">-->
              <!--</div>-->
              <!--</div>-->
              <div class="form-group customerForm" ng-show="showVersion">
                <label class="col-sm-2 control-label">预计版本发布时间</label>
                <div class="col-sm-10">
                  <input  disabled id="datetime-4" name="divineVersionTime" ng-model="divineVersionTime" type="text" value="{{divineVersionTime | date:'yyyy-MM-dd'}}"
                    class="form-control">
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">项目周期</label>
                <div class="col-sm-10">
                  <!-- <input id="datetime-5" name="startTime" type="text" value="" style="width: 48%;" class="form-control">
                  <input id="datetime-6" name="endTime" certus-required type="text"
                         style="width:48%;position:absolute;left: 50%;bottom: 0px;" value="" class="form-control"> -->
                  <div class="row">
                    <div class="col-lg-6">
                      <input disabled type="text" class="form-control" certus-required id="datetime-5" name="startTime"
                        placeholder="开始日期" value="{{startTime}}">
                    </div>
                    <div class="col-lg-6">
                      <input disabled type="text" class="form-control" certus-required id="datetime-6" name="endTime"
                        placeholder="结束日期" value="{{endTime}}">
                    </div>
                  </div>
                </div>
              </div>
              <div class="form-group customerForm" id="pdLine" ng-show="showPolucy">
                <label class="col-sm-2 control-label">产品线*</label>
                <div class="col-sm-10">
                  <div class="checkbox">
                    <label><input disabled type="checkbox" value="RXYJDSJ">柔性云及大数据研发部</label>
                  </div>
                  <div class="checkbox">
                    <label><input  disabled type="checkbox" value="RXBYJSYFB">柔性边缘计算研发部</label>
                  </div>
                  <div class="checkbox">
                    <label><input  disabled type="checkbox" value="RXRHYWPTYFB">柔性融合运维平台研发部</label>
                  </div>
                  <div class="checkbox">
                    <label><input disabled type="checkbox" value="RXJCWLYFB">柔性基础网络研发部</label>
                  </div>
                  <div class="checkbox">
                    <label><input disabled type="checkbox" value="RXYYFB">柔性云研发部</label>
                  </div>
                  <div class="checkbox">
                    <label><input disabled type="checkbox" value="RXXXKFB">柔性信息系统研发部</label>
                  </div>
                  <div class="checkbox">
                    <label><input disabled type="checkbox" value="N">无</label>
                  </div>
                </div>
                <label class="col-sm-2 control-label"></label>
                <div class="col-sm-10">
                  <div class="checkbox">
                    <label><input disabled type="checkbox"  value="GDXXXT">广东信息系统集成部</label>
                  </div>
                  <div class="checkbox">
                    <label><input disabled type="checkbox"  value="GDRXXXRND">广东柔性信息系统研发部</label>
                  </div>
                  <div class="checkbox">
                    <label><input disabled type="checkbox"  value="GDRXWLRND">柔性网络研发技术支持部</label>
                  </div>
                  <div class="checkbox">
                    <label><input disabled type="checkbox"  value="GDRXRHYWRND">柔性融合运维研发技术支持部</label>
                  </div>
                  <div class="checkbox">
                    <label><input disabled type="checkbox"  value="GDYJDSJRND">柔性云及大数据研发技术支持部</label>
                  </div>
                </div>
              </div>
              <!--<div class="form-group customerForm">-->
                <!--<label class="col-sm-2 control-label">项目介绍</label>-->
                <!--<div class="col-sm-10">-->
                  <!--<a class="update-icon" onclick="showfile();">上传附件</a>-->
                <!--</div>-->
              <!--</div>-->

            </div>
          </section>
          <div class="hidefile">
            <section class="panel">
              <header class="panel-heading">
                文件上传
              </header>
              <div class="panel-body">
                <div ng-include="'templates/upload-file.html'"></div>

                <p class="default-buttons">
                  <a href="javascript:void(0);" class="button-back btn btn-info" onclick="hidefile()">取消</a>
                  <a href="javascript:void(0);" class="button-next  btn btn-info toRegu">提交</a>
                </p>
              </div>
            </section>
          </div>
          <section class="panel">
            <header class="panel-heading">
              线索阶段商务预测(只用于本阶段)
            </header>
            <div class="panel-body bio-graph-info">

              <div class="form-group customerForm" ng-if="showMoney">
                <label class="col-sm-2 control-label">销售额</label>
                <div class="col-sm-10">
                  <input type="text" disabled onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" name="divineMoney"
                    certus-required value="{{divineMoney}}" min="0" class="form-control">
                  <input type="hidden" name="dmId" value="{{dmId}}">
                </div>
              </div>
              <input type="hidden" value="{{isCompare}}" name="isCompare" />
              <div class="form-group customerForm" ng-if="showBudget">
                <label class="col-sm-2 control-label">客户预算</label>
                <div class="col-sm-10">
                  <input type="text" disabled onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" name="cusBudget" value="{{cusBudget}}"
                    certus-required min="0" class="form-control">
                  <input type="hidden" name="bumId" value="{{bumId}}">
                </div>
              </div>
              <hr />
              <div class="form-group customerForm" ng-if="showCtMoney">
                <label class="col-sm-2 control-label">客户交际费用</label>
                <div class="col-sm-10">
                  <input type="text" disabled onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" name="divineContactMoney"
                    certus-required value="{{divineContactMoney}}" min="0" class="form-control">
                  <input type="hidden" name="cmId" value="{{cmId}}">
                </div>
              </div>
              <div class="form-group customerForm" ng-show="showCtMoney">
                <label class="col-sm-2 control-label">使用周期*</label>
                <div class="col-sm-10">
                  <div class="row">
                    <div class="col-lg-6">
                      <input type="text" disabled class="form-control" certus-required id="ctStartTime" name="ctStartTime" value="{{ctStartTime}}"
                        placeholder="开始日期">
                    </div>
                    <div class="col-lg-6">
                      <input type="text" disabled class="form-control" certus-required id="ctEndTime" name="ctEndTime" value="{{ctEndTime}}"
                        placeholder="结束日期">
                    </div>
                  </div>
                </div>
              </div>
              <div class="form-group customerForm" ng-if="showCtMoney">
                <label class="col-sm-2 control-label">交际费用说明</label>
                <div class="col-sm-10">
                  <input type="text" disabled name="dcMoneyDesc" value="{{dcMoneyDesc}}" class="form-control">
                </div>
              </div>
              <hr />
              <div class="form-group customerForm" ng-if="showBsMoney">
                <label class="col-sm-2 control-label">差旅费用</label>
                <div class="col-sm-10">
                  <input type="text" disabled onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" name="divineBusinessMoney"
                    certus-required value="{{divineBusinessMoney}}" min="0" class="form-control">
                  <input type="hidden" name="bmId" value="{{bmId}}">
                </div>
              </div>
              <div class="form-group customerForm" ng-show="showBsMoney">
                <label class="col-sm-2 control-label">使用周期*</label>
                <div class="col-sm-10">
                  <div class="row">
                    <div class="col-lg-6">
                      <input type="text" disabled class="form-control" certus-required id="bsStartTime" name="bsStartTime" value="{{bsStartTime}}"
                        placeholder="开始日期">
                    </div>
                    <div class="col-lg-6">
                      <input type="text" disabled class="form-control" certus-required id="bsEndTime" name="bsEndTime" value="{{bsEndTime}}"
                        placeholder="结束日期">
                    </div>
                  </div>
                </div>
              </div>
              <div class="form-group customerForm" ng-if="showBsMoney">
                <label class="col-sm-2 control-label">费用说明</label>
                <div class="col-sm-10">
                  <input type="text" disabled name="dbMoneyDesc" value="{{dbMoneyDesc}}" class="form-control">
                </div>
              </div>
              <hr />
              <div class="form-group customerForm" ng-if="showPhMoney">
                <label class="col-sm-2 control-label">采购费用</label>
                <div class="col-sm-10">
                  <input type="text" disabled onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" name="divinePurchaseMoney"
                    certus-required value="{{divinePurchaseMoney}}" min="0" class="form-control">
                  <input type="hidden" name="pmId" value="{{pmId}}">
                </div>
              </div>
              <div class="form-group customerForm" ng-show="showPhMoney">
                <label class="col-sm-2 control-label">使用周期*</label>
                <div class="col-sm-10">
                  <div class="row">
                    <div class="col-lg-6">
                      <input type="text" disabled class="form-control" certus-required id="phStartTime" name="phStartTime" value="{{phStartTime}}"
                        placeholder="开始日期">
                    </div>
                    <div class="col-lg-6">
                      <input type="text" disabled  class="form-control" certus-required id="phEndTime" name="phEndTime" value="{{phEndTime}}"
                        placeholder="结束日期">
                    </div>
                  </div>
                </div>
              </div>
              <div class="form-group customerForm" ng-if="showPhMoney">
                <label class="col-sm-2 control-label">费用说明</label>
                <div class="col-sm-10">
                  <input type="text" name="dpMoneyDesc" disabled value="{{dpMoneyDesc}}" class="form-control">
                </div>
              </div>
            </div>
            <input type="hidden" value="{{proId}}" name="proId" id="proId" />
            <input type="hidden" value="{{userId}}" name="userId" id="userId" />

          </section>
          <section class="panel hideprobox">
            <header class="panel-heading">
              其他费用
              <!-- <i class="add-icon icon-plus" onclick="showother()"> 新增</i> -->
            </header>
            <div class="panel-body bio-graph-info">
              <div id="other1Container" class="dlshouwen-grid-container"></div>
            </div>
          </section>

          <section class="panel hideprobox">
            <header class="panel-heading add-heading">
              人天预估
              <i class="add-icon icon-plus" onclick="showRl();"> 新增</i>
            </header>
            <div class="panel-body bio-graph-info">
              <div id="rlContainer" class="dlshouwen-grid-container"></div>
              <div id="rlToolBarContainer" class="dlshouwen-grid-toolbar-container"></div>
            </div>
          </section>
          <section class="panel hideprobox">
            <header class="panel-heading add-heading">
              涉及文件
              <i class="add-icon icon-plus" onclick="showWj();"> 新增</i>
            </header>
            <div class="panel-body bio-graph-info">
              <div id="wjContainer" class="dlshouwen-grid-container"></div>
              <div id="wjToolBarContainer" class="dlshouwen-grid-toolbar-container"></div>
            </div>
          </section>

          <section class="panel">
            <header class="panel-heading">
              其他说明
            </header>
            <div class="panel-body bio-graph-info">
              <div class="form-group customerForm">
              
                  <textarea name="clueApplyDesc" maxlength="120"  class="form-control" disabled>{{clueApplyDesc}}</textarea>
               
              </div>
            </div>
          </section>
          <section class="panel">
            <div class="panel-body">
              <p class="default-buttons">
                <a href="javascript:void(0);" class="button-back btn btn-info" onclick="window.history.back()">返回</a>
                <a href="javascript:void(0);" class="button-next  btn btn-info" onclick="window.history.back()">确认</a>
              </p>
            </div>
          </section>

           <!-- 流程跟踪V3.0效果 -->
           <section>
              <a href="javascript:void(0);" class="second" id="process" onclick="shaper();">
                流程跟踪
              </a>
            </section>
            <!-- 流程跟踪展示效果 -->
            <section class="hdaper">
              <div class="panel">
                <div class="panel-heading add-heading">
                  流程跟踪
                  <i class="add-icon icon-remove" href="javascript:$.pageslide.close()" onclick="hdaper();"></i>
                </div>
                <div class="panel-body panel-proce">
                  <div class="proce-middle" id="nodeContiner"></div>
                </div>
              </div>
              <div class="paper-bg"  onclick="clsbox();"></div>
            </section>

        </div>
      </div>
    </form>
  </section>
</section>
<!-- 当前页面js文件引入 -->
<script src="js/CertusFileUpload.js"></script>
<script type="text/javascript" src="assets/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="js/autocomplete/jquery.autocomplete.js"></script>
<script src="js/project/editClue.js"></script>
<script src="js/project/editClue2.js"></script>
<script>
  //时间控件
  $('#datetime').datepicker({
    format: 'yyyy-mm-dd'
  });
  $('#datetime-1').datepicker({
    format: 'yyyy-mm-dd'
  });
  $("#datetime-2").datepicker({
    format: 'yyyy-mm-dd'
  });
  $("#datetime-3").datepicker({
    format: 'yyyy-mm-dd'
  });
  $("#datetime-4").datepicker({
    format: 'yyyy-mm-dd'
  });
</script>